<?php require VIEW_ROOT.'/link/index.php'?>

<div style="margin-top:20px; padding:5px; border:#caca00 1px solid; text-align:center; color:#f00; background:#ffffc4; width:300px;">
	<b>当前为链接编辑页面!</b> &nbsp; <a href="?m=link" style="font-size:13px;">返回链接首页</a>
</div>

<style>
#item_info { background:#ffffc4; border:#caca00 1px solid; position:absolute; top:100px; left:200px; display:none; padding:5px; font-size:12px; line-height:15px; }
</style>

<script type="text/javascript" src="./resource/images/liteui/jquery.min.js"></script>

<script>
var item_info_obj;
var item_obj;

$(function() {
	$('.mod a, .mod span').click(function() {
		item_obj = $(this);
		var offset = $(this).offset();
		var left = offset.left;
		var top = offset.top + 17;
		
		item_info_obj = $('#item_info');
		item_info_obj.css({'left' : left, 'top' : top});
		item_info_obj.html('正在载入…');
		item_info_obj.load('./?m=link&a=ajax_edit&item_id='+$(this).attr('itemid'));
		item_info_obj.show();
		
		return false;
	});
});

function hide_item_info() {
	var item_info_obj = $('#item_info');
	item_info_obj.hide();
	return false;
}
</script>

<div id="item_info"></div>
